import {
  Config
} from '@tarojs/taro';

const config: Config = {
  pages: ["pages/tabbar/index/index", "pages/tabbar/cart/index", "pages/tabbar/category/index", "pages/tabbar/store/index", "pages/tabbar/user/index"],
  subPackages: [{
    "root": "pages/adviser",
    "pages": ["index/index"]
  },
  {
    "root": "pages/annual",
    "pages": ["balance/index", "diy/index", "diySpec/index", "diySpecNum/index", "index/index", "list/index", "use/index", "details/index"]
  },
  {
    "root": "pages/car",
    "pages": ["add/index", "list/index","mileage/index"]
  },
  {
    "root": "pages/coupon",
    "pages": ["details/index", "history/index", "index/index", "share/index"]
  },
  {
    "root": "pages/detection",
    "pages": ["detail/index", "record/index"]
  },
  {
    "root": "pages/distribution",
    "pages": ["apply/index", "index/index", "share/index", "invite/index", "poster/index", "redpacket/index", "year-redpacket/index"]
  },
  {
    "root": "pages/evaluate",
    "pages": ["index/index", "list/index"]
  },
  {
    "root": "pages/goods",
    "pages": ["details/index", "distributionList/index", "list/index", "share/index"]
  },
  {
    "root": "pages/live",
    "pages": ["index/index"]
  },
  {
    "root": "pages/luck",
    "pages": ["index/index", "record/index", "rule/index"]
  },
  {
    "root": "pages/maintain",
    "pages": ["activity_1/index", "activity_2/index", "list/index", "spec/index"]
  },
  {
    "root": "pages/order",
    "pages": ["agreement/index", "apply/index", "booking/index", "details/index", "index/index", "insurancePay/index", "list/index", "pay/index", "refund/index", "logistics/index", "checkPay/index", "cheapApply/index"]
  },
  {
    "root": "pages/redpacket",
    "pages": ["index/index", "list/index", "rule/index", 'baobei/index']
  },
  {
    "root": "pages/rescue",
    "pages": ["detail/index", "index/index"]
  },
  {
    "root": "pages/search",
    "pages": ["find/index"]
  },
  {
    "root": "pages/service",
    "pages": ["index/index", "stored/index"]
  },
  {
    "root": "pages/store",
    "pages": ["all/index", "city/index", "detail/index", "index/index", "region/index", "platform/index"]
  },
  {
    "root": "pages/testLazyLoad",
    "pages": ["index/index"]
  },
  {
    "root": "pages/topush",
    "pages": ["index/index", "qrcode/index", "store/index"]
  },
  {
    "root": "pages/user",
    "pages": ["agreement/index", "info/index", "login/index", "consume/index", "write-off/index"]
  },
  {
    "root": "pages/warranty",
    "pages": ["detail/index", "list/index"]
  },
  {
    "root": "pages/share",
    "pages": ["invite/index"]
  },
  {
    "root": "pages/webview",
    "pages": ["distribution/index", "h5/index", "home/index", "index/index", "share/index"]
  },
  {
    "root": "pages/platform",
    "pages": ["city/index"]
  },
  {
    "root": "pages/cheap",
    "pages": ["index/index", "activity/index", "topic/index", "order/index"]
  },
  {
    "root": "pages/pick",
    "pages": ["index/index"]
  },
	{
    "root": "pages/authorization",
    "pages": ["index/index"]
  },
	{
		"root": "pages/assistant",
    "pages": ["index/index","exchange/index"]
	},
  ],
  tabBar: {
    'color': '#999999',
    'selectedColor': '#12B3FF',
    'backgroundColor': '#ffffff',
    list: [{
      'pagePath': 'pages/tabbar/index/index',
      'iconPath': 'static/img/home.png',
      'selectedIconPath': 'static/img/home-act.png',
      'text': '首页'
    },
    {
      'pagePath': 'pages/tabbar/category/index',
      'iconPath': 'static/img/shop.png',
      'selectedIconPath': 'static/img/shop-act.png',
      'text': '养车商城'
    },
    {
      'pagePath': 'pages/tabbar/store/index',
      'iconPath': 'static/img/store.png',
      'selectedIconPath': 'static/img/store-act.png',
      'text': '门店'
    },
    {
      'pagePath': 'pages/tabbar/cart/index',
      'iconPath': 'static/img/cart.png',
      'selectedIconPath': 'static/img/cart-act.png',
      'text': '购物车'
    },
    {
      'pagePath': 'pages/tabbar/user/index',
      'iconPath': 'static/img/user.png',
      'selectedIconPath': 'static/img/user-act.png',
      'text': '我的'
    }]
  },
  permission: {
    'scope.userLocation': {
      'desc': '位置信息用于查找附近门店'
    }
  },
  requiredPrivateInfos: [
    'getLocation',
  ],
  window: {
    backgroundTextStyle: 'light',
    navigationBarBackgroundColor: '#fff',
    navigationBarTitleText: '',
    navigationBarTextStyle: 'black'
  },
  lazyCodeLoading: "requiredComponents",
  subPackageBuildType: 'shared',
  embeddedAppIdList: ["wxc3f5e20f0716b841"]
};

export default config;
